<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" class="" dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Pots and Pans restaurant › Uploads — WordPress</title>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var userSettings = {'url':'/','uid':'5','time':'1348108979'};
var ajaxurl = '/wp-admin/admin-ajax.php', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = 0;
//]]>
</script>
<link rel="stylesheet" href="../assets/media-upload_files/load-styles.css" type="text/css" media="all">
<link rel="stylesheet" id="imgareaselect-css" href="../assets/media-upload_files/imgareaselect.css" type="text/css" media="all">
<link rel="stylesheet" id="colors-css" href="../assets/media-upload_files/colors-fresh.css" type="text/css" media="all">
<link rel="stylesheet" id="icons-css" href="../assets/media-upload_files/icons.css" type="text/css" media="all">
<link rel="stylesheet" id="jetpack-css" href="../assets/media-upload_files/jetpack.css" type="text/css" media="all">
<link rel="stylesheet" id="thickbox-css" href="../assets/media-upload_files/thickbox.css" type="text/css" media="all">
<script type="text/javascript">
/* <![CDATA[ */
var pluploadL10n = {"queue_limit_exceeded":"You have attempted to queue too many files.","file_exceeds_size_limit":"%s exceeds the maximum upload size for this site.","zero_byte_file":"This file is empty. Please try another.","invalid_filetype":"This file type is not allowed. Please try another.","not_an_image":"This file is not an image. Please try another.","image_memory_exceeded":"Memory exceeded. Please try another smaller file.","image_dimensions_exceeded":"This is larger than the maximum size. Please try another.","default_error":"An error occurred in the upload. Please try again later.","missing_upload_url":"There was a configuration error. Please contact the server administrator.","upload_limit_exceeded":"You may only upload 1 file.","http_error":"HTTP error.","upload_failed":"Upload failed.","big_upload_failed":"Please try uploading this file with the %1$sbrowser uploader%2$s.","big_upload_queued":"%s exceeds the maximum upload size for the multi-file uploader when used in your browser.","io_error":"IO error.","security_error":"Security error.","file_cancelled":"File canceled.","upload_stopped":"Upload stopped.","dismiss":"Dismiss","crunching":"Crunching\u2026","deleted":"moved to the trash.","error_uploading":"\u201c%s\u201d has failed to upload."};/* ]]> */
</script>
<script type="text/javascript" src="../assets/media-upload_files/load-scripts.js"></script>
<script type="text/javascript" src="../assets/media-upload_files/jqueryFileTree.js"></script>
</head>
<body id="media-upload" class="js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script> 
<script type="text/javascript">post_id = 1193;</script>
<div id="media-upload-header">
  <ul id="sidemenu">
    <li id="tab-type"><a href="../uploads/media-upload.php">From Computer</a></li>
    <li id="tab-type_url"><a href="../uploads/media-upload.phppost_id=1193&tab=type_url">From URL</a></li>
    <li id="tab-library"><a href="../uploads/media-upload-library.php" class="current">Media Library</a></li>
  </ul>
</div>
<form id="filter" action="" method="get">
  <input name="type" value="file" type="hidden" />
  <input name="tab" value="library" type="hidden" />
  <input name="post_id" value="1193" type="hidden" />
  <input name="post_mime_type" value="" type="hidden" />
  <input name="context" value="" type="hidden" />
  <p id="media-search" class="search-box">
    <label class="screen-reader-text" for="media-search-input">Search Media:</label>
    <input id="media-search-input" name="s" type="search" />
    <input name="" id="" class="button" value="Search Media" type="submit" />
  </p>
  <ul class="subsubsub">
    <li><a href="media-upload.php?post_id=1193&amp;tab=library&amp;post_mime_type=all" class="current">All Types</a> | </li>
    <li><a href="media-upload.php?post_id=1193&amp;tab=library&amp;post_mime_type=image">Images <span class="count">(<span id="image-counter">170</span>)</span></a> | </li>
    <li><a href="media-upload.php?post_id=1193&amp;tab=library&amp;post_mime_type=audio">Audio <span class="count">(<span id="audio-counter">1</span>)</span></a></li>
  </ul>
  <div class="tablenav">
    <div class="tablenav-pages"><span class="page-numbers current">1</span> <a class="page-numbers" href="media-upload.php?post_id=1193&amp;tab=library&amp;paged=2">2</a> <a class="page-numbers" href="media-upload.php?post_id=1193&amp;tab=library&amp;paged=3">3</a> <span class="page-numbers dots">…</span> <a class="page-numbers" href="media-upload.php?post_id=1193&amp;tab=library&amp;paged=18">18</a> <a class="next page-numbers" href="media-upload.php?post_id=1193&amp;tab=library&amp;paged=2">»</a></div>
    <div class="alignleft actions">
      <select name="m">
        <option selected="selected" value="0">Show all dates</option>
        <option value="201209">September 2012</option>
        <option value="201208">August 2012</option>
        <option value="201206">June 2012</option>
        <option value="201205">May 2012</option>
        <option value="201203">March 2012</option>
        <option value="201202">February 2012</option>
        <option value="201112">December 2011</option>
        <option value="201111">November 2011</option>
        <option value="201108">August 2011</option>
      </select>
      <input name="post-query-submit" id="post-query-submit" class="button-secondary" value="Filter »" type="submit" />
    </div>
    <br class="clear">
  </div>
</form>
<form enctype="multipart/form-data" method="post" action="media-upload.php?type=file&amp;tab=library&amp;post_id=1193" class="media-upload-form validate" id="library-form">
  <input id="_wpnonce" name="_wpnonce" value="dd91638876" type="hidden" />
  <input name="_wp_http_referer" value="media-upload.php?post_id=1193&amp;tab=library" type="hidden" />
  <script type="text/javascript">
<!--
jQuery(function($){
	var preloaded = $(".media-item.preloaded");
	if ( preloaded.length > 0 ) {
		preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
		updateMediaForm();
	}
});
-->
</script>
  <div id="media-items">
  <?php
    $root_dir='root';
    if(is_dir($root_dir))
    {
        $files=scandir($root_dir); // Lấy file trong thư mục
        $i=1;
        foreach($files as $file)
        {
            if($file=='.' || $file=='..')
            {
                continue;
            }
            $extension = strtolower(substr(strrchr($file, '.'), 1));
            $fileName=rtrim(strstr($file, $extension, true),'.');
  ?>
  <div id="media-item-<?=$i++?>" class="media-item child-of-1027 preloaded">
      <div class="progress hidden">
        <div class="bar"></div>
      </div>
      <div id="media-upload-error-<?=$i++?>" class="hidden"></div>
      <div class="filename hidden"></div>
      <input id="type-of-<?=$i++?>" value="image" type="hidden" />
      <a class="toggle describe-toggle-on" href="#">Show</a> <a class="toggle describe-toggle-off" href="#">Hide</a>
      <input name="attachments[<?=$i++?>][menu_order]" value="2" type="hidden" />
      <div class="filename new"><span class="title"><?=$file?></span></div>
      <table class="slidetoggle describe startclosed">
        <thead class="media-item-info" id="media-head-<?=$i++?>">
            <tr valign="top">
            <td class="A1B1" id="thumbnail-head-<?=$i++?>"><?=$file?>
              <p><a href="#" target="_blank"><img class="thumbnail" src="<?=$root_dir.'/'.$file?>" alt="" /></a></p>
              <p>
                <input id="imgedit-open-btn-<?=$i++?>" onclick='imageEdit.open( <?=$i++?>, "3031da88d8" )' class="button" value="Edit Image" type="button">
                <img src="../assets/media-upload_files/wpspin_light.gif" class="imgedit-wait-spin" alt="" /></p></td>
            <td><p><strong>File name:</strong><?=$fileName?></p>
              <p><strong>File type:</strong> image/<?=$extension?></p>
              <p><strong>Upload date:</strong> September 19, 2012</p>
              <p><strong>Dimensions:</strong> <span id="media-dims-<?=$i++?>">700&nbsp;×&nbsp;566</span> </p></td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="2" class="imgedit-response" id="imgedit-response-<?=$i++?>"></td>
            </tr>
            <tr>
                <td style="display:none" colspan="2" class="image-editor" id="image-editor-<?=$i++?>"></td>
            </tr>
            <tr class="post_title form-required">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][post_title]"><span class="alignleft">Title</span><span class="alignright"><abbr title="required" class="required">*</abbr></span><br class="clear" />
                  </label>
                </th>
                <td class="field"><input class="text" id="attachments[<?=$i++?>][post_title]" name="attachments[<?=$i++?>][post_title]" value="<?=$file?>" aria-required="true" type="text" /></td>
            </tr>
            <tr class="image_alt">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][image_alt]"><span class="alignleft">Alternate Text</span><br class="clear">
                  </label>
                </th>
                <td class="field"><input class="text" id="attachments[<?=$i++?>][image_alt]" name="attachments[<?=$i++?>][image_alt]" type="text" />
                  <p class="help">Alt text for the image, e.g. "The Mona Lisa"</p></td>
            </tr>
            <tr class="post_excerpt">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][post_excerpt]"><span class="alignleft">Caption</span><br class="clear" />
                  </label></th>
                <td class="field"><textarea name="attachments[<?=$i++?>][post_excerpt]" id="attachments[<?=$i++?>][post_excerpt]"></textarea></td>
            </tr>
            <tr class="post_content">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][post_content]"><span class="alignleft">Description</span><br class="clear" />
                  </label></th>
                <td class="field"><textarea id="attachments[<?=$i++?>][post_content]" name="attachments[<?=$i++?>][post_content]"></textarea></td>
            </tr>
            <tr class="url">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][url]"><span class="alignleft">Link URL</span><br class="clear" />
                  </label>
                </th>
                <td class="field"><input class="text urlfield" name="attachments[<?=$i++?>][url]" value="<?=$file?>" type="text" />
                  <br />
                  <button type="button" class="button urlnone" data-link-url="">None</button>
                  <button type="button" class="button urlfile" data-link-url="<?=$_SERVER['SERVER_NAME'].'/'.$file?>">File URL</button>
                  <button type="button" class="button urlpost" data-link-url="<?=$root_dir.'/'.$fileName.'/'?>">Attachment Post URL</button>
                  <p class="help">Enter a link URL or click above for presets.</p></td>
            </tr>
            <tr class="align">
                <th scope="row" class="label" valign="top"><label for="attachments[<?=$i++?>][align]"><span class="alignleft">Alignment</span><br class="clear" />
                  </label></th>
                <td class="field"><input name="attachments[120<?=$i++?>9][align]" id="image-align-none-<?=$i++?>" value="none" checked="checked" type="radio" />
                  <label for="image-align-none-<?=$i++?>" class="align image-align-none-label">None</label>
                  <input name="attachments[<?=$i++?>][align]" id="image-align-left-<?=$i++?>" value="left" type="radio" />
                  <label for="image-align-left-<?=$i++?>" class="align image-align-left-label">Left</label>
                  <input name="attachments[<?=$i++?>][align]" id="image-align-center-<?=$i++?>" value="center" type="radio" />
                  <label for="image-align-center-<?=$i++?>" class="align image-align-center-label">Center</label>
                  <input name="attachments[<?=$i++?>][align]" id="image-align-right-<?=$i++?>" value="right" type="radio" />
                  <label for="image-align-right-<?=$i++?>" class="align image-align-right-label">Right</label></td>
            </tr>
            <tr class="submit">
                <td></td>
                <td class="savesend">
                    <input name="send[<?=$i++?>]" id="send[<?=$i++?>]" class="button" value="Insert into Post" type="submit" />
                    <a class="wp-post-thumbnail" id="wp-post-thumbnail-<?=$i++?>" href="#" onclick='WPSetAsThumbnail("<?=$i++?>", "b3ddef3a9b");return false;'>Use as featured image</a>
                    <a href="#" class="del-link" onclick="document.getElementById('del_attachment_<?=$i++?>').style.display='block';return false;">Delete</a>
                    <div id="del_attachment_<?=$i++?>" class="del-attachment" style="display:none;">
                        <p>You are about to delete <strong><?=$file?></strong>.</p>
                        <a href="#" id="del[<?=$i++?>]" class="button">Continue</a>
                        <a href="#" class="button" onclick="this.parentNode.style.display='none';return false;">Cancel</a>
                    </div>
                </td>
            </tr>
        </tbody>
      </table>
  </div>
  <?php
        }
    }
    else
    {
        echo 'Không tìm thấy thư mục gốc!';
    }
  ?>
  </div>
  <p class="ml-submit">
    <input name="save" id="save" class="button savebutton" value="Save all changes" type="submit">
    <input name="post_id" id="post_id" value="1193" type="hidden">
  </p>
</form>
<script type="text/javascript">
/* <![CDATA[ */
var commonL10n = {"warnDelete":"You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete."};var imageEditL10n = {"error":"Could not load the preview image. Please reload the page and try again."};var setPostThumbnailL10n = {"setThumbnail":"Use as featured image","saving":"Saving...","error":"Could not set that as the thumbnail image. Try a different attachment.","done":"Done"};var thickboxL10n = {"next":"Next >","prev":"< Prev","image":"Image","of":"of","close":"Close","noiframes":"This feature requires inline frames. You have iframes disabled or your browser does not support them.","loadingAnimation":"http:\/\/potsnpans.vn\/wp-includes\/js\/thickbox\/loadingAnimation.gif","closeImage":"http:\/\/potsnpans.vn\/wp-includes\/js\/thickbox\/tb-close.png"};/* ]]> */
</script> 
<script type="text/javascript" src="../assets/media-upload_files/load-scripts_002.js"></script> 
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>